package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Destination;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface DestinationMongoRepository extends MongoRepository<Destination,String> {
    List<Destination> findByIdIn(List<String> refIds);

    List<Destination> findByParentId(String parentId, PageRequest of);

    List<Destination> findByParentName(String parentName);

    Destination findByName(String name);
}
